<html>
	<head>
		<meta charset="utf-8">
		<title>产品检验入库单</title>
	</head>
	<body>
		{if ( $error == 1) }
			{$message}
		{else/}
			<div id="div1">
				<div style="position: absolute; width: 100%;text-align: right;top: -6px;">
					<font>
					<img style="height: 60px;height: 60px; text-align: right;" src="{$qrcode}" alt="">
					</font>
				</div>
				<DIV style="LINE-HEIGHT: 30px;font-size: 24px;" class=size16 align=center><STRONG style="font-size: 24px;"><font style="font-size: 24px;">产品检验入库单</font></STRONG></DIV>
				<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
				  	<TBODY>
					<TR>
						<TD width="43%"><font >
							供应商：<SPAN id=rpt_Pro_Order_List_ctl00_lbl_eShop_Name></SPAN></font>{$data.supplier_name}
					  	</TD>
					    <TD width="33%">
					    	<font >订单编号：<SPAN >{$data.order_purchase['fill_no']}</SPAN></font>
					    </TD>
					    <TD>
					    	<font >日期：</font>{$print_date}
					    </TD>
					</TR>
					</TBODY>
				</TABLE>
			</div>
			<div id="div2">
				<TABLE border=1 cellSpacing=0 cellPadding=1 width="100%" style="border-collapse:collapse" bordercolor="#333333">
					<thead>
					  <TR>
						<TD width="5%"> <DIV align=center><b>序号</b></DIV></TD>
						<TD width="17%"> <DIV align=center><b>物料编码</b></DIV></TD>
						<TD width="15%"> <DIV align=center><b>物料名称</b></DIV></TD>
						<TD width="17%"> <DIV align=center><b>规格/颜色</b></DIV></TD>
						<TD width="5%"> <DIV align=center><b>单位</b></DIV></TD>
						<TD width="8%"> <DIV align=center><b>订单数</b></DIV></TD>
						<TD width="8%"> <DIV align=center><b>送货数量</b></DIV></TD>
					  	<TD width="10%"> <DIV align=center><b>入库数</b></DIV></TD>
					  	<TD width="5%"> <DIV align=center><b>件数</b></DIV></TD>
					  	<TD width="10%"> <DIV align=center><b>备注</b></DIV></TD>
					  </TR>
					</thead>
					<TBODY style="size: 12px">
					{foreach $data.delivery_goods as $kg => $dg }
						<TR>
						    <TD >&nbsp;{$kg + 1}</TD>
						    <TD >{$dg['material_number']}</TD>
						    <TD >{$dg['material_name']}</TD>
						    <TD >{$dg['model']}</TD>
						    <TD >{$dg['unit_number']}</TD>
						    <TD >{$dg['qty']}</TD>
						    <TD > </TD>
						    <TD > </TD>
						    <TD > </TD>
						    <TD > </TD>
						</TR>
					{/foreach}
					<TR>
					    <TD colspan="5">质检评述：</TD>
					    <TD colspan="5">采购评述：</TD>
					</TR>
					<TBODY>
				</TABLE>
			</div>
			<div id="div3">
			<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
				<TBODY>
					<TR>
						<TD >制单人：</TD>
						<TD >质检：</TD>
						<TD >保管：</TD>
						<TD >审核：</TD>
					</TR>
				</TBODY>
			</TABLE>
			</div>
			<div>
			<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
				<TBODY>
					<TR>
						<TD colspan="9" width="90%"><b>&nbsp;</b></TD>
						<TD ><a href="javascript:printMytable();">打印</a></TD>
					</TR>
				</TBODY>
			</TABLE>
			</div>
		{/if}
		<script src="{$host}/static/js/LodopFuncs.js" type="text/javascript" charset="utf-8" > </script>
		<script type="text/javascript" charset="utf-8" >
			function printMytable(){
				var LODOP=getLodop();  
				// LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_分页打印综合表格");
				var strStyle="<style> table,td,th {border-width: 1px;border-style: solid;border-collapse: collapse}</style>"
				LODOP.ADD_PRINT_TABLE(80,"0.1%","99%",314,strStyle+document.getElementById("div2").innerHTML);
				LODOP.SET_PRINT_STYLEA(0,"Vorient",3);
				LODOP.ADD_PRINT_HTM(26,"0.1%","99%",109,document.getElementById("div1").innerHTML);
				LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
				LODOP.SET_PRINT_STYLEA(0,"LinkedItem",1);	
			    	LODOP.ADD_PRINT_HTM(395,"0.1%","99%",54,document.getElementById("div3").innerHTML);
				LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
				LODOP.SET_PRINT_STYLEA(0,"LinkedItem",1);	
				LODOP.NewPageA();
		    		LODOP.ADD_PRINT_TABLE(80,"0.1%","99%",328,strStyle+document.getElementById("div2").innerHTML);
				LODOP.SET_PRINT_STYLEA(0,"Vorient",3);	
				// LODOP.ADD_PRINT_HTM(26,"0.1%","99%",80,document.getElementById("div4").innerHTML);
				LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
				LODOP.SET_PRINT_STYLEA(0,"LinkedItem",4);	
				// LODOP.ADD_PRINT_TEXT(460,96,"76.25%",20,"真诚祝您好远，欢迎下次再来！(发货单02的表格外“页脚”，紧跟表格)");
				LODOP.SET_PRINT_STYLEA(0,"LinkedItem",4);
				LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
				LODOP.SET_PRINT_STYLEA(0,"FontColor","#FF0000");
				LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
				LODOP.SET_PRINT_STYLEA(0,"ItemType",1);
				LODOP.SET_PRINT_STYLEA(0,"Horient",3);	
				// LODOP.ADD_PRINT_HTM(1,600,300,100,"总页号：<font color='#0000ff' format='ChineseNum'><span tdata='pageNO'>第##页</span>/<span tdata='pageCount'>共##页</span></font>");
				LODOP.ADD_PRINT_HTM(1,600,300,100,"");

				LODOP.SET_PRINT_STYLEA(0,"ItemType",1);

				LODOP.SET_PRINT_STYLEA(0,"Horient",1);	
				// LODOP.ADD_PRINT_TEXT(3,34,196,20,"总页眉：《两个发货单的演示》");
				LODOP.SET_PRINT_STYLEA(0,"ItemType",1);		
				LODOP.PREVIEW();
				// LODOP.PRINT();
			};	
		</script>
	</body>
</html>
